/*
 * DeletePointCommand.java
 *
 * Created on 12 czerwiec 2007, 02:00
 */

package edu.uj.petri.commands;

import edu.uj.petri.view.ArcSegment;
import edu.uj.petri.view.ArcView;
import edu.uj.petri.view.LinkingPoint;
import java.util.ResourceBundle;

/**
 *
 * @author Paweł
 */
public class DeletePointCommand extends Command {
        
    private ArcView arcView;
    private LinkingPoint point;
    
    /** Creates a new instance of DeletePointCommand */
    public DeletePointCommand( ArcView arcView, LinkingPoint point) {
        super(true); // execute and forget - TODO why?
        
        this.arcView = arcView;        
        this.point = point;
        this.point = point;
    }
    
    public String toString(){
        return "removing linking point";
    }
    
    public void execute()
    {
        arcView.removeLinkingPoint(point);
    }
    
    public void undo()
    {

    }
    
    boolean canBeCombined(Command c) {
        return false;
    }

    private static final long serialVersionUID = 57572105555054L;
    
    
}
